package edu.towson.cosc.cosc455.zsierakowski.compiler;

public class MyCompiler {

	public static String token;
	static MyLexicalAnalyzer Lexer;
	static MySyntaxAnalyzer parser;
	static MySemanticAnalyzer generator;
	
	public static void main(String[] args) {
		
		token = "";
		
		//Check that there is 1 argument
		if(args.length != 1){
			System.err.println("ERROR! There is not a single argument");
			System.exit(0);
		}	
		
		//check extension
		//.....
		//check extension
		
		//initialize parse tree array
		//other initializations
		
		Lexer = new MyLexicalAnalyzer();
		Lexer.getNextToken();
		
		parser = new MySyntaxAnalyzer();
		parser.lolcode();
		
		generator = new MySemanticAnalyzer();
		//call semantic analyzer 


		//write the output file
		//clean up
	}

}
